package top.frsf.pattern.c_behavioral.c_observer.spring.event;

import lombok.*;
import org.springframework.context.ApplicationEvent;

/**
 * @author FRSF
 * @since 2024/9/4 23:00
 */
@Getter
@Setter
@ToString
public class LogEvent extends ApplicationEvent {

    /**
     * 日志时间
     */
    private String currentTime;

    /**
     * 日志级别
     */
    private String level;

    /**
     * 日志消息
     */
    private String msg;

    public LogEvent(Object source, String currentTime, String level, String msg) {
        super(source);
        this.currentTime = currentTime;
        this.level = level;
        this.msg = msg;
    }


}
